#[derive(Clone, Copy, PartialEq, Eq, Debug, Hash)]
pub struct Size {
    pub width: usize,
    pub height: usize,
}

impl Size {
    pub fn new(width: usize, height: usize) -> Self {
        Size { width, height }
    }

    pub fn tile_count(&self) -> usize {
        self.width * self.height
    }
}

pub fn size(width: usize, height: usize) -> Size {
    Size::new(width, height)
}
